package com.example.demo.mvvm.ui.base;


import android.databinding.ObservableArrayList;
import android.databinding.ObservableField;
import android.databinding.ObservableList;

import com.example.demo.mvvm.common.DividerLine;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadmoreListener;

/**
 * Created by 80711 on 2018/5/16.
 */

public abstract class BaseRecyclerViewVM<T> extends BaseViewVM {

    public int type = DividerLine.HORIZONTAL;

    public final ObservableList<T> items = new ObservableArrayList<>();

    public ObservableField<OnRefreshLoadmoreListener> listener = new ObservableField<>();


    public SmartRefreshLayout layout;


    public SmartRefreshLayout getLayout() {
        return layout;
    }

    public void setLayout(SmartRefreshLayout layout) {
        this.layout = layout;
    }

}
